package com.park.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.park.dao.CouponRecordDataMapper;
import com.park.model.CouponRecordData;
import com.park.service.CouponRecordDataService;

@Service
public class CouponRecordDataServiceImpl implements CouponRecordDataService {

	@Autowired
	private CouponRecordDataMapper couponRecordDataMapper;
	@Override
	public int insert(CouponRecordData couponRecordData) {
		// TODO Auto-generated method stub
		return couponRecordDataMapper.insert(couponRecordData);
	}

	@Override
	public int update(CouponRecordData couponRecordData) {
		// TODO Auto-generated method stub
		return couponRecordDataMapper.updateByPrimaryKey(couponRecordData);
	}

	@Override
	public int delete(List<Integer> id) {
		// TODO Auto-generated method stub
//		return couponRecordDataMapper.deleteByPrimaryKey(id);
		return 0;
	}

	@Override
	public List<CouponRecordData> select(int i, int pageSize) {
		// TODO Auto-generated method stub
//		return couponRecordDataMapper.selectPage(i,pageSize);
		return null;
	}

	@Override
	public int getAllCount() {
		// TODO Auto-generated method stub
//		return couponRecordDataMapper.getAllCount();
		return 0;
	}

}
